package hhm.framessm.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import hhm.framessm.common.pojo.FBResult;
import hhm.framessm.search.service.ContentService;

@Controller
@RequestMapping("/manager")
public class ContentController {

	@Autowired
	private ContentService service;

	@RequestMapping("/importall")
	@ResponseBody
	public FBResult importAllItems() {
		FBResult result = service.importAllItems();
		return result;
	}
}
